package com.nulldev.util.data.CompressionAPI.thirdparty.mig.concurrentli;

/**
 * Represents an {@link InterruptedException} that has been caught and rethrown
 * as a runtime (unchecked) exception.
 *
 * @author Jeff Pasternack
 */
public class UncheckedInterruptedException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	/**
	 * Creates a new instance, wrapped the provided {@link InterruptedException}
	 *
	 * @param e the {@link InterruptedException} being wrapped
	 */
	public UncheckedInterruptedException(InterruptedException e) {
		super(e);
	}

	@Override
	public InterruptedException getCause() {
		return (InterruptedException) super.getCause();
	}
}